import request from '@/utils/request'

//getListByGrade
export function getListByGrade(data: any) {
  return request({
    url: '/oaDept/getListByGrade',
    method: 'get',
    params: data,
  })
}
//getListByGrade
export function getAllList(data: any) {
  return request({
    url: '/oaDept/getAllList',
    method: 'get',
    params: data,
  })
}

export function getAllTreeData(data: any) {
  return request({
    url: '/oaDept/getAllTreeData',
    method: 'get',
    data
  })
}

//saveData
export function saveData(data: any) {
  return request({
    url: '/oaDept/save',
    method: 'post',
    data: data,
  })
}

//removeByIds
export function removeById(data: any) {
  return request({
    url: '/oaDept/removeById',
    method: 'get',
    params: data,
  })
}
